﻿using SmartWMS.Domain.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartWMS.Domain.BusinessManage
{
    /// <summary>
    /// 销售管理
    /// </summary>
    public class SalesManagement : KeyEntity
    {
        /// <summary>
        /// 销售单号
        /// </summary>
        public string? SalesCode { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 出库数
        /// </summary>
        public int OutboundShipments { get; set; }
        /// <summary>
        /// 客户单号
        /// </summary>
        public string? ClientCode { get; set; }
        /// <summary>
        /// 客户名
        /// </summary>
        public string? ClientName { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }
        /// <summary>
        /// 订单总额
        /// </summary>
        public decimal OrdersSum { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string? DocumentType { get; set; }
        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime Delivery { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? Creator { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime CreatorTime { get; set; }
        /// <summary>
        /// 是否入账
        /// </summary>
        public bool RecordedState { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remarks { get; set; }
        /// <summary>
        /// 是否退货
        /// </summary>
        public bool IsReturn { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public int ReturnNumber { get; set; }
    }
}
